package com.sg.dto.biz.app.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc MyReceiveOfficialDocumentDto
 * @使用场景
 */
@Data
public class MyReceiveOfficialDocumentDto
        extends BaseDto
        implements Serializable {

    /**
     * 公文ID
     */
    @ApiModelProperty("公文ID")
    private String officialDocumentId;

    /**
     * 公文名称
     */
    @ApiModelProperty("公文名称")
    private String officialDocumentName;

    /**
     * 公文编号
     */
    @ApiModelProperty("公文编号")
    private String officialDocumentNum;

    /**
     * 接收范围 EVERYONE:所有人 DEPT:部门 PERSON:个人
     */
    @ApiModelProperty("接收范围")
    private String receiveRange;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 是否开启工作任务 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否开启工作任务")
    private String isOpenWorkTask;

    /**
     * 工作任务是否已安排 TRUE:是 FALSE:否
     */
    @ApiModelProperty("工作任务是否已安排")
    private String workTaskIsArrange;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        MyReceiveOfficialDocumentDto that = (MyReceiveOfficialDocumentDto) o;
        return officialDocumentId == that.officialDocumentId && officialDocumentName == that.officialDocumentName && officialDocumentNum == that.officialDocumentNum && receiveRange == that.receiveRange && subjectLifeCycle == that.subjectLifeCycle && createTime == that.createTime && isOpenWorkTask == that.isOpenWorkTask && workTaskIsArrange == that.workTaskIsArrange;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), officialDocumentId, officialDocumentName, officialDocumentNum, receiveRange, subjectLifeCycle, createTime, isOpenWorkTask, workTaskIsArrange);
    }

}
